package cn.project.dao;


import cn.project.model.User;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository("userDao")
public class UserImple extends HibernateDaoSupport implements UserDao {

    public List<User> getallUser() {
        return getHibernateTemplate().find("from User");
    }
}
